package cn.tedu.fruitshop.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 添加菜单传的实体类
 * @author www
 * @create 2022-11-02 20:15
 */
@Data
public class MenuAddNewDTO implements Serializable {

    /**
     * 菜单标题
     */
    @NotNull(message = "标题不能为空")
    @ApiModelProperty(value = "标题",required = true)
    private String title;
    /**
     * 角色id
     */
    @NotNull(message = "角色id不能为空")
    @ApiModelProperty(value = "角色id",required = true)
    private Integer roleId;
}
